﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001019 RID: 4121
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournGameAreaInfo : IMessage<RogueTournGameAreaInfo>, IMessage, IEquatable<RogueTournGameAreaInfo>, IDeepCloneable<RogueTournGameAreaInfo>, IBufferMessage
	{
		// Token: 0x1700341C RID: 13340
		// (get) Token: 0x0600B85A RID: 47194 RVA: 0x001F1549 File Offset: 0x001EF749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournGameAreaInfo> Parser
		{
			get
			{
				return RogueTournGameAreaInfo._parser;
			}
		}

		// Token: 0x1700341D RID: 13341
		// (get) Token: 0x0600B85B RID: 47195 RVA: 0x001F1550 File Offset: 0x001EF750
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournGameAreaInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700341E RID: 13342
		// (get) Token: 0x0600B85C RID: 47196 RVA: 0x001F1562 File Offset: 0x001EF762
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournGameAreaInfo.Descriptor;
			}
		}

		// Token: 0x0600B85D RID: 47197 RVA: 0x001F1569 File Offset: 0x001EF769
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameAreaInfo()
		{
		}

		// Token: 0x0600B85E RID: 47198 RVA: 0x001F1571 File Offset: 0x001EF771
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameAreaInfo(RogueTournGameAreaInfo other) : this()
		{
			this.gameAreaId_ = other.gameAreaId_;
			this.gameWeek_ = other.gameWeek_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B85F RID: 47199 RVA: 0x001F15A2 File Offset: 0x001EF7A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournGameAreaInfo Clone()
		{
			return new RogueTournGameAreaInfo(this);
		}

		// Token: 0x1700341F RID: 13343
		// (get) Token: 0x0600B860 RID: 47200 RVA: 0x001F15AA File Offset: 0x001EF7AA
		// (set) Token: 0x0600B861 RID: 47201 RVA: 0x001F15B2 File Offset: 0x001EF7B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameAreaId
		{
			get
			{
				return this.gameAreaId_;
			}
			set
			{
				this.gameAreaId_ = value;
			}
		}

		// Token: 0x17003420 RID: 13344
		// (get) Token: 0x0600B862 RID: 47202 RVA: 0x001F15BB File Offset: 0x001EF7BB
		// (set) Token: 0x0600B863 RID: 47203 RVA: 0x001F15C3 File Offset: 0x001EF7C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameWeek
		{
			get
			{
				return this.gameWeek_;
			}
			set
			{
				this.gameWeek_ = value;
			}
		}

		// Token: 0x0600B864 RID: 47204 RVA: 0x001F15CC File Offset: 0x001EF7CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournGameAreaInfo);
		}

		// Token: 0x0600B865 RID: 47205 RVA: 0x001F15DA File Offset: 0x001EF7DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournGameAreaInfo other)
		{
			return other != null && (other == this || (this.GameAreaId == other.GameAreaId && this.GameWeek == other.GameWeek && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B866 RID: 47206 RVA: 0x001F1618 File Offset: 0x001EF818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GameAreaId != 0U)
			{
				num ^= this.GameAreaId.GetHashCode();
			}
			if (this.GameWeek != 0U)
			{
				num ^= this.GameWeek.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B867 RID: 47207 RVA: 0x001F1670 File Offset: 0x001EF870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B868 RID: 47208 RVA: 0x001F1678 File Offset: 0x001EF878
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B869 RID: 47209 RVA: 0x001F1684 File Offset: 0x001EF884
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GameWeek != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.GameWeek);
			}
			if (this.GameAreaId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.GameAreaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B86A RID: 47210 RVA: 0x001F16E0 File Offset: 0x001EF8E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GameAreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameAreaId);
			}
			if (this.GameWeek != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameWeek);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B86B RID: 47211 RVA: 0x001F1738 File Offset: 0x001EF938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournGameAreaInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GameAreaId != 0U)
			{
				this.GameAreaId = other.GameAreaId;
			}
			if (other.GameWeek != 0U)
			{
				this.GameWeek = other.GameWeek;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B86C RID: 47212 RVA: 0x001F1788 File Offset: 0x001EF988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B86D RID: 47213 RVA: 0x001F1794 File Offset: 0x001EF994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.GameAreaId = input.ReadUInt32();
					}
				}
				else
				{
					this.GameWeek = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004A5B RID: 19035
		private static readonly MessageParser<RogueTournGameAreaInfo> _parser = new MessageParser<RogueTournGameAreaInfo>(() => new RogueTournGameAreaInfo());

		// Token: 0x04004A5C RID: 19036
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004A5D RID: 19037
		public const int GameAreaIdFieldNumber = 8;

		// Token: 0x04004A5E RID: 19038
		private uint gameAreaId_;

		// Token: 0x04004A5F RID: 19039
		public const int GameWeekFieldNumber = 7;

		// Token: 0x04004A60 RID: 19040
		private uint gameWeek_;
	}
}
